import os

from dotenv import load_dotenv
from openai import OpenAI
from langchain_community.chat_models.tongyi import ChatTongyi

load_dotenv(override=True)
model = ChatTongyi(model="qwen-plus", api_key=os.getenv("DASHSCOPE_API_KEY"))
question = "请介绍一下你自己"
result = model.invoke(question)

print(result)